home *** CD-ROM | disk | FTP | other *** search
/ Venus 7000 / darktronics.iso / Software / Service Packs / WinXPSP1.exe / appwiz.cp_ / appwiz.cpl / HTML / UTIL.JS < prev    next >
Encoding:
Text File  |  2002-08-29  |  1.6 KB  |  71 lines

  1. var KC_ESCAPE = 27; 
  2. var KC_RETURN = 13; 
  3. var APPCAP_INSTALL = 0x0001;
  4. var APPCAP_UNINSTALL = 0x0002;
  5. var APPCAP_MODIFY = 0x0004;
  6. var APPCAP_REPAIR = 0x0008;
  7. var APPCAP_UPGRADE = 0x0010;
  8. var APPCAP_CANGETSIZE = 0x0020;
  9. var APPCAP_MODIFYREMOVE = 0x0080;
  10. var APPCAP_ADDLATER = 0x0100;
  11. var APPCAP_UNSCHEDULE = 0x0200;
  12. function ApplyExtraStyles(tblElem, bFocus)
  13. {
  14. var szFocusClass;
  15. if (bFocus)
  16. szFocusClass = "Focus";
  17. else
  18. szFocusClass = "";
  19. var tblProps = tblElem.all('idTblExtendedProps');
  20. if (tblProps)
  21. {
  22. tblProps.className = szFocusClass;
  23. }
  24. var rganchor = tblElem.all.tags("A");
  25. var canchor = rganchor.length;
  26. for (i = 0; i < canchor; i++)
  27. {
  28. rganchor[i].className = szFocusClass;
  29. }
  30. }
  31. function Dso_GetCtl(szDso)
  32. {
  33. return g_docAll.idCtlAppsDso;
  34. }
  35. function Dso_GetRecordset(szDso)
  36. {
  37. return g_docAll.idCtlAppsDso.namedRecordset(szDso);
  38. }
  39. function Dso_Sort(szDso, szKey)
  40. {
  41. g_docAll.idCtlAppsDso.Sort = szKey;
  42. g_docAll.idCtlAppsDso.Reset(szDso);
  43. }
  44. function Dso_Filter(szDso, szFilter)
  45. {
  46. g_docAll.idCtlAppsDso.Category = szFilter;
  47. g_docAll.idCtlAppsDso.Reset(szDso);
  48. }
  49. function _SetPubWaitingFeedback()
  50. {
  51. var L_RetrievingApps_Text = "Searching the network for available programs...";
  52. g_docAll.idAddListbox.feedBack = L_RetrievingApps_Text;
  53. }
  54. function Dso_Refresh(szDso)
  55. {
  56. g_docAll.idCtlAppsDso.Dirty = true;
  57. if ("Add" == szDso)
  58. _SetPubWaitingFeedback();
  59. g_docAll.idCtlAppsDso.Reset(szDso); 
  60.  
  61.  
  62. }
  63. function Dso_FeedbackIfEmpty(szDso, idListbox, szEmptyFeedback)
  64. {
  65. var rs = Dso_GetRecordset(szDso); 
  66. if (rs && rs.state != 0 && rs.RecordCount > 0)
  67. idListbox.feedBack = "";
  68. else 
  69. idListbox.feedBack = szEmptyFeedback;
  70. }
  71.